package org.ajiaojr.enigmagm.db;

import org.ajiaojr.enigmagm.client.data.User;
import org.ajiaojr.enigmagm.client.service.DataAccessException;

public interface UserDAO {
  public User login(String username, String password)
      throws DataAccessException;

  public User loginViaAuthToken(String username, String authToken)
      throws DataAccessException;

  public void register(String username, String password)
      throws DataAccessException;

  public void saveAuthToken(String username, String authToken)
      throws DataAccessException;
}
